package third;

public class Main {
    public static void main(String[] args) {
        Employee[] employees = new Employee[10];
        Company company = new Company(employees, 0);
        company.addEmployee(new YearWorker(100000));
        company.addEmployee(new YearWorker(200000));
        company.addEmployee(new MonthWorker(5000));
        company.addEmployee(new MonthWorker(8000));
        company.addEmployee(new WeekWorker(300));

        System.out.println("公司薪水总额：" + company.calculate(employees, company.size));

    }
}
